package com.wisdytech.linkdcs.system.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-09-16
 */
@TableName("sys_user")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
	private String pkId;
	@TableField("LDAP_USER_ID")
	private String ldapUserId;
	@TableField("WORK_NO")
	private String workNo;
	@TableField("USERNAME")
	private String username;
	@TableField("PASSWORD")
	private String password;
	@TableField("TRUENAME")
	private String truename;
	@TableField("MOBILE")
	private String mobile;
	@TableField("TELEPHONE")
	private String telephone;
	@TableField("EMAIL")
	private String email;
	@TableField("ADDRESS")
	private String address;
	@TableField("REMARK")
	private String remark;
	@TableField("ENABLED")
	private String enabled;
	@TableField("DEL_FLAG")
	private String delFlag;
	@TableField("CREATE_USER")
	private String createUser;
	@TableField("CREATE_DATE")
	private Date createDate;
	@TableField("UPDATE_USER")
	private String updateUser;
	@TableField("UPDATE_DATE")
	private Date updateDate;
	@TableField("WECHAT_NAME")
    private String wechatName;
	
	//角色名称，角色表字段
	@TableField(exist = false)
    private String roleNameStr;
	//角色名称，角色表字段
    @TableField(exist = false)
    private String roleId;
    
    @TableField(exist=false)
    private List<SysResource> resources;
    
    //角色名称，角色表字段
    @TableField(exist = false)
    private String lastAccessModuleName;
    
    
	public String getLastAccessModuleName() {
		return lastAccessModuleName;
	}

	public void setLastAccessModuleName(String lastAccessModuleName) {
		this.lastAccessModuleName = lastAccessModuleName;
	}

	public List<SysResource> getResources() {
		return resources;
	}

	public void setResources(List<SysResource> resources) {
		this.resources = resources;
	}

	public String getWechatName() {
        return wechatName;
    }

    public void setWechatName(String wechatName) {
        this.wechatName = wechatName;
    }

    public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	public String getLdapUserId() {
		return ldapUserId;
	}

	public void setLdapUserId(String ldapUserId) {
		this.ldapUserId = ldapUserId;
	}

	public String getWorkNo() {
		return workNo;
	}

	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRoleNameStr() {
		return roleNameStr;
	}

	public void setRoleNameStr(String roleNameStr) {
		this.roleNameStr = roleNameStr;
	}
	
	

	public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
	protected Serializable pkVal() {
		return this.pkId;
	}

}
